package com.hiabr.iep.common.domain.vo.resp;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * description: ErrorType
 * date: 2023-06-20 16:42
 * author: chenxudong
 * version: 1.0
 */
@Getter
@AllArgsConstructor
public enum ErrorType {

    SUCCESS_SYSTEM("00000", "成功"),
    ERROR_SYSTEM("99999", "系统异常"),
    ERROR_SIGNATURE_PARAM("90000", "签名参数为空"),
    ERROR_SIGNATURE("90001", "签名错误"),
    ERROR_SIGNATURE_TS("90002", "签名时间错误"),
    ERROR_APPCODE("90003", "无效的appCode"),
    ERROR_INTERNAL_CALL("90005", "内部调用错误"),
    ERROR_SYSTEM_FLOW_LIMITING("90010", "系统限流，请稍后重试"),

    ERROR_LOGIN("10000", "用户名或密码错误"),
    ERROR_TOKEN("10001", "无效的token"),
    ERROR_PERMISSION("10002", "权限不足，请联系管理员授权"),
    ERROR_PARAMS("10003", "参数异常"),
    ERROR_DUPLICATEKEY("10004", "记录已存在"),
    ERROR_DOESNOTEXIST("10005", "记录不存在"),
    ERROR_RELATEDATA("10006", "存在关联数据，无法删除"),
    ERROR_NORESOURCE("10007", "该用户没有可访问的资源"),
    ERROR_BUSINESS("20000", "用户名或密码错误"),
    ERROR_PASSWORD("20001", "密码错误"),

    ERROR_FILE_UPLOAD_FAILED("30000", "上传文件失败，请检查配置信息");


    private final String code;
    private final String msg;

}
